﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Jogo_Grupo2.Elementos
{
    class Tiro : Objeto2D
    {
        private string direcao;

        public Tiro(Texture2D textura, Vector2 position, string direcao)
            : base(textura, position)
        {
            this.direcao = direcao;
        }

       

        public override void Update(GameTime gameTime)
        {
            if (direcao == "direita")
                this.position.X += 10;

            else
                this.position.X -= 10;
            base.Update(gameTime);
        }

        //public override void Draw(SpriteBatch spriteBatch)
        //{
        //    spriteBatch.Draw(texture, new Vector2(0, 0), Color.White);

        //    base.Draw(spriteBatch);
        //}

    }
}
